﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsAppPfs
{
    public partial class frmRsaAndX509 : Form
    {
        RsaCryptService target = new RsaCryptService();
        public frmRsaAndX509()
        {
            InitializeComponent();
        }

        private void btnEncryptString_Click(object sender, EventArgs e)
        {
            edtDecryptString.Text = target.EncryptString(edtEncryptString.Text);
        }

        private void btnClearEncryptString_Click(object sender, EventArgs e)
        {
            edtEncryptString.Clear();
        }

        private void btnDecryptString_Click(object sender, EventArgs e)
        {
            edtEncryptString.Text = target.DecryptString(edtDecryptString.Text);
        }

        private void btnClearDecryptString_Click(object sender, EventArgs e)
        {
            edtDecryptString.Clear();
        }
    }
}
